const mongoose = require('mongoose');
module.exports = () => {
    let schema = new mongoose.Schema({
        username: String,//教练名称
        tag: Array,
        timeList: [String],//日期数组
        storeId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: 'Storage'//用户id
        },
        phone: String,//手机号
        logo: String,//头像
        startTime: Date,//服务开始日期
        endTime: Date,//服务结束日期
        priceList: mongoose.Schema.Types.Mixed, // 文件的信息,比如图片的长宽
        // [{
        //     time: Date,
        //     price: Number,
        // }],
        des: String,
        content: String,
        typeList:Array,
        hxPrice:{
            price:Number,
            isChoose:{
                type:Boolean,
                default:false,
            },
        },
        jjPrice:{
            price:Number,
            isChoose:{
                type:Boolean,
                default:false,
            }
        },
        deletedAt: Date,
        createdAt: Date,
        updatedAt: Date,
    }, {collection: 'teacher'});
    return schema;
};
